package qianfeng.com.jswebproject;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class UseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_use);
    }

    public void onClick(View view) {
        if (view != null) {
            switch (view.getId()) {
                case R.id.bt_use_net:
                    startActivity(new Intent(this, NetActivity.class));
                    break;
                case R.id.bt_use_json:
                    startActivity(new Intent(this, JsonActivity.class));
                    break;
                case R.id.bt_use_local:
                    startActivity(new Intent(this, LocalActivity.class));
                    break;
                default:
                    break;
            }
        }
    }
}
